$(function () {
            $('a[rel="tooltip"][href="#"]').click(function (e) { e.preventDefault(); return false; });
            $('.datepicker').datepicker();
            $('.timepicker').timepicker();
            $('.color').colorpicker();
            $('.popover-btn').popover();
            $('#MySpinner').spinner();
            $('#some-textarea').wysihtml5({ "stylesheets": ["lib/bootstrap-wysihtml5/lib/css/wysiwyg-color.css"] });
            $('#qrcode').qrcode({ render: 'table', width: 96, height: 96, text: "Hope you like the theme!" });
            $('#warning-toggle-button').toggleButtons({
                style: {
                    enabled: "warning",
                    disabled: "danger"
                }
            });



            $('#danger-toggle-button').toggleButtons({
                style: {
                    enabled: "danger",
                    disabled: "info"
                }
            });


            $('#info-toggle-button').toggleButtons({
                style: {
                    enabled: "info",
                    disabled: "success"
                }
            });


            $('#success-toggle-button').toggleButtons({
                style: {
                    enabled: "success",
                    disabled: "warning"
                }
            });



            // Random Messages
            var messages = [
              ['bottom-right', 'success', "What's up? This is a message."],
              ['bottom-right', 'info', "What's up? This is a message."],
              ['top-right', 'inverse', "What's up? This is a message."],
              ['top-right', 'success', "What's up? This is a message."],
              ['top-right', 'danger', "What's up? This is a message."],
              ['bottom-left', 'warning', "What's up? This is a message."],
              ['bottom-left', 'info', "What's up? This is a message."],
              ['bottom-left', 'success', "What's up? This is a message."],
            ];

            $('.show-notification').click(function (e) {
                var message = messages[Math.floor(Math.random() * messages.length)];

                $('.' + message[0]).notify({
                    message: { text: message[2] },
                    type: message[1]
                }).show();
            });

            $('#filter-demo').isotope();

            fancyFilter('.filter', '#filter-demo');
        }); //<--document.ready